Skip to content

ASoC: codec: max98373-sdw: fix a amixer error when codec is suspended - #2226

Merged
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
RanderWang:98373_amixer_error
Jul 2, 2020
Merged

plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
RanderWang:98373_amixer_error

Conversation

@RanderWang

Copy link
Copy Markdown

If codec is suspended, a error of Device or resource busy occurs when
executing amixer. Amixer accesses some codec registers are volatile and
the regmap is set to cache_only when codec is suspended, so regmap can't
get these data from regmap cache and return -EBUSY.

Actually these registers can be set by user and remain unchanged, so we
can get its value from regmap cache. This patch remove volatile attribute
of these registers to let regmap cache work.

fixes #2221

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][TGL]Terminal shows "cannot load mixer controls: Device or resource busy" when open alsamixer when pm runtime in suspended status.

6 participants